<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目管理</title>
<base href="<%=basePath%>">
<link rel="stylesheet" type="text/css"
	href="jquery-easyui-1.4.1/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="css/icon.css">
<link rel="stylesheet" type="text/css"
	href="jquery-easyui-1.4.1/themes/color.css">
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript"
	src="jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript"
	src="jquery-easyui-1.4.1/plugins/datagrid-detailview.js"></script>
<link href="umeditor/themes/default/css/umeditor.css" type="text/css"
	rel="stylesheet">
<script type="text/javascript" charset="utf-8"
	src="umeditor/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
	src="umeditor/umeditor.min.js"></script>
<script type="text/javascript" src="umeditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="layer/layer.js"></script>
<script type="text/javascript" src="js/admin/adfodderUtil.js"></script>
<script type="text/javascript" src="js/admin/aduserUtil.js"></script>
<script type="text/javascript" src="js/admin/pulishitem.js"></script>
<script type="text/javascript" src="js/jquery.qrcode.min.js"></script>
</head>
<body>
	<div style="height: 70px; width: 100%;">
		<div style="float: left; padding: 20px 0 0 20px;">
			<label>项目名称:</label> <input type="text" class="easyui-textbox"
				id="sprojectTitle">
		</div>
		<div style="float: left; padding: 20px 0 0 20px;">
			<label>发起人:</label> <input type="text" class="easyui-textbox"
				id="sprojectSponsorName"> <label>是否成功:</label> <select
				id="sprojectResult" class="easyui-combobox" name="sprojectResult"
				style="width: 155px;"
				data-options="editable:false,panelHeight:'auto'">
				<option value="" selected="selected">请选择</option>
				<option value="0">失败</option>
				<option value="1">成功</option>
			</select>
		</div>
		<div style="float: left; padding: 20px 0 0 20px;">
			<label>项目状态:</label> <select
					id="sprojectStatus" class="easyui-combobox" name="sprojectStatus"
					style="width: 155px;"
					data-options="editable:false,panelHeight:'auto'">
					<option value="" selected="selected">请选择</option>
					<option value="0">未开始</option>
					<option value="1">进行中</option>
					<option value="2">已结束</option>
					<option value="3">已下架</option>
				</select>
		</div>
		<div style="float: left; padding: 20px 0 0 20px;">
			<button id="searchProjectBtn" class="easyui-linkbutton c1"
				data-options="iconCls:'icon-search'" type="button">查询</button>
		</div>
		<div style="float: left; padding: 20px 0 0 20px;">
			<button id="resetProjecttn" class="easyui-linkbutton c5"
				data-options="iconCls:'icon-no'" type="button">重置</button>
		</div>
	</div>
	<div id="toolbar">
			<c:forEach items="${list}" var="item">
				${item}
			</c:forEach>
	</div>
	<!-- 加载项目详情 -->
	<table id="publishitem_table"></table>


	<!-- 发布项目隐藏窗口 -->
	<div id="publishdlg" class="easyui-dialog"
		data-options="iconCls:'icon-save',resizable:true,modal:true"
		style="width:920px; height: 600px; padding: 10px 20px" closed="true"
		align="center" buttons="#publishdlg-buttons">
		<form id="publishfm" class="easyui-form" data-options="novalidate:true">
			<table border="1" bordercolor="#ededed" align="center">
				<tr>
					<td><label>项目名称:</label></td>
					<td><input type="text" name="projectTitle" id="projectTitle"
						class="easyui-textbox" required="true"></td>
					<td><label>视频地址:</label></td>
					<td><input type="text" name="projectVideoUrl"
						id="projectVideoUrl" class="easyui-textbox"
						data-options="editable:false" >
						<button type="button" id="search_video_url"
							onclick="searchAllImage('projectVideoUrl')"
							class="easyui-linkbutton" data-options="iconCls:'icon-search'"
							style="width: 30px; height: 20px"></button></td>
							<td><label>标题图片地址:</label></td>
					<td><input type="text" name="projectTitleImgUrl"
						id="projectTitleImgUrl" class="easyui-textbox"
						data-options="editable:false" required="true">
						<button type="button"
							onclick="searchAllImage('projectTitleImgUrl')"
							class="easyui-linkbutton" data-options="iconCls:'icon-search'"
							style="width: 30px; height: 20px"></button></td>
					
				</tr>
				<tr>
					
				</tr>
				<tr>
					<td><label>开始时间:</label></td>
					<td><input type="text" name="projectStartTime"
						id="projectStartTime" class="easyui-datetimebox"
						data-options="editable:false" required="true"></td>
					<td><label>结束时间:</label></td>
					<td><input type="text" name="projectEndTime"
						id="projectEndTime" class="easyui-datetimebox"
						data-options="editable:false" required="true"></td>
						<td><label>视频蒙版地址:</label></td>
					<td><input type="text" name="projectVideoImgUrl"
						id="projectVideoImgUrl" class="easyui-textbox"
						data-options="editable:false" required="true">
						<button type="button"
							onclick="searchAllImage('projectVideoImgUrl')"
							class="easyui-linkbutton" data-options="iconCls:'icon-search'"
							style="width: 30px; height: 20px"></button></td>
				</tr>
				<tr>
					<td><label>目标金额:</label></td>
					<td><input type="text" name="projectGoalMoney"
						id="projectGoalMoney" class="easyui-numberbox" required="true"></td>
					<td><label>订单图片:</label></td>
					<td><input type="text" name="projectOrderImgUrl"
						id="projectOrderImgUrl" class="easyui-textbox"
						data-options="editable:false" required="true">
						<button type="button"
							onclick="searchAllImage('projectOrderImgUrl')"
							class="easyui-linkbutton" data-options="iconCls:'icon-search'"
							style="width: 30px; height: 20px"></button></td>
						<td><label>发布人:</label></td>
					<td><input type="text" class="easyui-textbox"
						name="userName" id="userName"
						data-options="editable:false" required="true">
						<button type="button" onclick="searchUserInfo();"
							class="easyui-linkbutton" data-options="iconCls:'icon-search'"
							style="width: 30px; height: 20px"></button>
						<input type="hidden" name="userId" id="userId">
					</td>
				</tr>
				<tr>
					<td><label>项目简介:</label></td>
					<td colspan="7"><input class="easyui-textbox"
						name="projectDescription" id="projectDescription"
						data-options="multiline:true,required:true,validType:'length[2,50]'" style="width: 780px; height: 100px">
					</td>
				</tr>
				<tr>
					<td><label>项目详情:</label></td>
					<td colspan="7"><div id="projectContentUrl"
							style="width: 780px; height: 150px;"></div></td>
				</tr>
				<tr>
					<td><label>项目靠前:</label> </td>
					<td><input class="easyui-numberbox" name="projectSequence" id="projectSequence" required="true"> </td>
				</tr>
			</table>
		</form>
	</div>
	<div id="publishdlg-buttons">
		<label id="projectsaveUrl" closed="true"></label> <a
			href="javascript:void(0)" id="projectSave" class="easyui-linkbutton c6"
			iconCls="icon-ok" onclick="projectSave();" style="width: 90px">保存</a>
		<a href="javascript:void(0)" class="easyui-linkbutton"
			iconCls="icon-cancel" id="projectCancel" onclick="projectCancel();" style="width: 90px">取消</a>
	</div>
	<!-- 图片查询隐藏窗口 -->
	<div id="adfodderdlg" class="easyui-dialog"
		data-options="iconCls:'icon-save',resizable:true,modal:true"
		style="width: 800px; height: 600px; padding: 10px 20px" closed="true">
		<div style="height: 70px; width: 100%;" align="center">
			<div style="float: left; padding: 20px 0 0 20px;">
				<label for="fodderName">文件名:</label> <input class="easyui-textbox"
					type="text" name="sfodderName" id="sfodderName" />
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<label for="fodderType">文件类型:</label> <select id="fodderType"
					class="easyui-combobox" name="fodderType" style="width: 155px;"
					data-options="editable:false,panelHeight:'auto'">
					<option value="" selected="selected">请选择</option>
					<option value="0">未知</option>
					<option value="1">图片</option>
					<option value="2">视频</option>
				</select>
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<button id="searchfodder" class="easyui-linkbutton c1"
					data-options="iconCls:'icon-search'" type="button"
					onclick="adfodderSearchBtn()">查询</button>
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<button id="resetFodderButtn" class="easyui-linkbutton c5"
					data-options="iconCls:'icon-clear'" type="button"
					onclick="adfodderResetBtn()">重置</button>
			</div>
		</div>
		<!-- 素材管理 -->
		<table id="Adfodderdirectory_table"></table>
	</div>

	<!-- 用户信息 -->
	<div id="aduserdlg" class="easyui-dialog"
		data-options="iconCls:'icon-save',resizable:true,modal:true"
		style="width: 1000px; height: 600px; padding: 10px 20px" closed="true">
		<!-- 搜索框 -->
		<div style="height: 70px; width: 100%;">
			<div style="float: left; padding: 20px 0 0 20px;">
				<label>用户名:</label> <input class="easyui-textbox" type="text"
					name="suserName" id="suserName">
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<label>手机号:</label> <input class="easyui-numberbox" type="text"
					name="suserTelephone" id="suserTelephone">
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<label>身份证:</label> <input class="easyui-numberbox" type="text"
					name="suserIdentityCard" id="suserIdentityCard">
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<button id="searchAdUser" class="easyui-linkbutton c1"
					onclick="aduserSearchBtn();" data-options="iconCls:'icon-search'"
					type="button">查询</button>
			</div>
			<div style="float: left; padding: 20px 0 0 20px;">
				<button id="resetAdUserButtn" class="easyui-linkbutton c5"
					onclick="aduserResetBtn();" data-options="iconCls:'icon-clear'"
					type="button">重置</button>
			</div>
		</div>

		<table id="aduser_table"></table>
	</div>
	<!-- 新增子项目隐藏窗口 -->
		<div id="aditemdlg" class="easyui-dialog"
		data-options="iconCls:'icon-save',resizable:true,modal:true"
		style="width: 980px; height: 600px; padding: 10px 20px" closed="true"
		align="center" buttons="#itemdlg-buttons">
		<form id="itemfm" class="easyui-form" data-options="novalidate:true">
			<table border="1" bordercolor="#ededed">
				<tr>
					<td><label>回报标题:</label></td>
					<td colspan="5"><input type="text" class="easyui-textbox"
					 id="itemTitle" name="itemTitle" required="true" style="width:100%"></td>
					
				</tr>
				<tr>
					<td><label>需要人数:</label></td>
					<td><input type="text" class="easyui-numberbox" style="width: 200px;"
						id="itemSupportMaxCount" name="itemSupportMaxCount" required="true"></td>
					<td><label>所需金额:</label></td>
					<td><input type="text" class="easyui-numberbox" precision="2" style="width: 200px;"
						id="itemSupportMoney" name="itemSupportMoney" required="true"></td>
						<td><label>是否参与抽奖:</label> </td>
					<td><select id="itemAwardStatus" class="easyui-combobox" name="itemAwardStatus" required="true">
							<option value="1">不抽奖</option>
							<option value="2">参与抽奖</option>
					</select> 
					</td>
				</tr>
				<tr>
					<td><label>回报内容:</label></td>
					<td colspan="5"><div id="itemContentUrl"
							style="width: 780px; height: 200px;" required="true"></div></td>
				</tr>
				<tr>
					<td><label>回报排序:</label> </td>
					<td><input class="easyui-numberbox" id="itemSequence" name="itemSequence" style="width: 200px;" required="true"> </td>
					<td><label>是否需要收货地址:</label></td>
					<td><select id="itemUseReceiveraddress"
						class="easyui-combobox" name="itemUseReceiveraddress"
						style="width: 200px;"
						data-options="editable:false,panelHeight:'auto'" required="true">
							<option value="" selected="selected">请选择</option>
							<option value="0">否</option>
							<option value="1">是</option>
					</select></td>
				</tr>
				<tr>
					
				</tr>
			</table>
		</form>
	</div>
	<div id="itemdlg-buttons">
		<label id="itemsaveUrl" closed="true"></label> <a
			href="javascript:void(0)" class="easyui-linkbutton c6"
			iconCls="icon-ok" id="itemSave" onclick="itemSave();" style="width: 90px">保存</a>
		<a href="javascript:void(0)" id="itemCancel" class="easyui-linkbutton"
			iconCls="icon-cancel" onclick="itemCancel();" style="width: 90px">取消</a>
	</div>
	<div id="code" class="easyui-dialog"
		data-options="iconCls:'icon-save',modal:true"
		style="width: 320px; height: 320px; padding: 10px 20px" closed="true">
		
	</div>
</body>
</html>